<ion-header>
  <ion-navbar style="opacity: 0.8" no-border-bottom color="primary">
    <ion-title>{{selectedItem.typename}}</ion-title>
  </ion-navbar>
  <ion-searchbar placeholder="请输入检索条件" (ionInput)="getItems($event)"></ion-searchbar>
</ion-header>
<!-- <ion-content fullscreen> 增加ion-searchbar搜索后，fullscreen影响ion-infinite-scroll下拉刷新，去掉-->
<ion-content>
  <ion-repository [repository]="repository"></ion-repository>
  <ion-row>
    <ion-col class="nodata" text-center *ngIf="!hasmore"> 没有啦 (^∇^*)</ion-col>
  </ion-row>
  <ion-fab right bottom>
    <button ion-fab color="secondary" (click)="addRepository(selectedItem.typeid)"><ion-icon name="create"></ion-icon></button>
  </ion-fab>
  <ion-infinite-scroll (ionInfinite)="doInfinite($event)">
    <ion-infinite-scroll-content></ion-infinite-scroll-content>
  </ion-infinite-scroll>
</ion-content>
